Text functions are used with text variables to combine text strings and to extract parts of text strings.
Be sure to use the exact syntax for these functions including spacing and parentheses as specified below. Note that text functions are case-insensitive.
Function | Example rule | Inputs | Outputs | Further information |
---|---|---|---|---|
Contains |
|
the account name: "Special Benefits" | the account may be a benefit account = true | Check if a text string contains a particular substring |
StartsWith |
|
the person's name: "Sir Lancelot" | the person should be represented = true | Check if a text string contains a particular substring at the start of the string |
EndsWith |
|
the product code: "B421-A3N-ASC" | the product uses the ascending sort code = true | Check if a text string contains a particular substring at the end of the string |
IsNumber |
|
the postcode: "2612" | the postcode is a valid Australian postcode = true | Check if a text string is a number |
Length |
|
the product code: "123456789" | the product code is valid = true | Find the length of a text string |
Concatenation |
|
the person's first name: William the person's age: 20 the person's occupation: Student |
the screen heading variable for the person = "William, 20, Student" | Combine multiple text strings into a single text variable |
Substring |
|
customer name: "maryjane" |
customer reference = "jane" | Extract part of a text string |
Text |
|
the customer's age: 25 | the customer's age text = "25" | Convert a number or date into a text string |
TIP: The localized syntax for these functions may be viewed: